<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GOP Theater</title>

<link type="text/css" rel="stylesheet" href="/spring-GOP/css/event/style_30.css">
<link type="text/css" rel="stylesheet" href="/spring-GOP/css/event/style_3000.css">
<link type="text/css" rel="stylesheet" href="/spring-GOP/css/event/style_3010.css">
<link type="text/css" rel="stylesheet" href="/spring-GOP/css/common.css">
<link type="text/css" rel="stylesheet" href="/spring-GOP/css/style.css">
</head>

<script type="text/javascript">
function onEventClick(event_num) {
	
	var hiddenField = document.createElement("input");
	hiddenField.setAttribute("type", "hidden");
	hiddenField.setAttribute("name", "event_num");
	hiddenField.setAttribute("value", event_num);

	document.listForm.appendChild(hiddenField);

	document.listForm.submit();
}
</script>

<body>
<!-- container -->
	<form action="/GOP/pages/event/event_view.jsp" method="post" name="listForm">
			<div id="container">
				<div id="content">
					<!-- <div> floating - 메인인 경우</div> -->
					<div id="main-shortCut">
						<div class="sub-main-section layout c30000000">
							<!-- 컨텐츠 작성 -->
							<div class="page-type3">
								<h2>
									<p>진행 중인 이벤트</p>
								</h2>
							</div>
							<div class="cur-list event-list">
								<ul>
									<c:forEach var="item" items="${startList}">
										<li>
											<a style="cursor:pointer;" href="/spring-GOP/event/eventdetail?num=${item.event_num }">
												<img src="${item.path}${item.file_name}" width="238" height="178">
											</a>
										</li>
									</c:forEach>
	 							</ul>
							</div>
							<div class="clear_both"></div>
							<div>
								<!-- page-box -->
								<li class="page-box"><a class="on">1</a>
									<input id="_hidPageNum" name="_hidPageNum" type="hidden" value="1">
									<input id="_hidActionName" name="_hidActionName" type="hidden" value="EventList">
									<input id="_hidControlName" name="_hidControlName" type="hidden" value="Event">
									<input id="_hidOrderBy" name="_hidOrderBy" type="hidden" value="DESC">
									<input id="_hidOrderColumn" name="_hidOrderColumn" type="hidden" value="">
									<input id="_hidSearchKeyword" name="_hidSearchKeyword" type="hidden" value="132~/~/~/2">
									<input id="_hidSearchCondition" name="_hidSearchCondition" type="hidden" value="">
									<input name="_hidSearchSubmit" id="_hidSearchSubmit" type="submit" style="display: none">
								</li>
								<!-- //page-box -->
							</div>

							<!-- 컨텐츠 작성 -->
							<div class="page-type3 margin-top100">
								<h2>
									<p>종료 된 이벤트</p>
								</h2>
							</div>
							<div class="end-list event-list">
								<ul>
								<%-- <%
									
									for(int i = 0; i < getEventlast.size(); i++){
										String path = getEventlast.get(i).getPath() + getEventlast.get(i).getFile_name();
								 %>
									<li>
										<a style="cursor:pointer;" href="/GOP/pages/event/event_view.jsp?event_num=<%=lastlist.get(i).getEvent_num()%>">
											<img src="<%=path%>" width="238" height="178">
										</a>
									</li>
								<% }%> --%>
									<c:forEach var="item" items="${endList}">
										<li>
											<a style="cursor:pointer;" href="/spring-GOP/event/eventdetail?num=${item.event_num }">
												<img src="${item.path}${item.file_name}" width="238" height="178">
											</a>
										</li>
									</c:forEach>
									
								</ul>
							</div>
							<div class="clear_both"></div>
							<div>
								<!-- page-box -->
								<li class="page-box"><a class="on">1</a> <!--<a href="javascript:fnGotoPage(1);"><strong>1</strong></a>-->

									<input id="_hidPageNum2" name="_hidPageNum2" type="hidden" value="1">
									<input id="_hidActionName2" name="_hidActionName2" type="hidden" value="EventList">
									<input id="_hidControlName2" name="_hidControlName2" type="hidden" value="Event">
									<input id="_hidOrderBy2" name="_hidOrderBy2" type="hidden" value="DESC">
									<input id="_hidOrderColumn2" name="_hidOrderColumn2" type="hidden" value="">
									<input id="_hidSearchKeyword2" name="_hidSearchKeyword2" type="hidden" value="132~/~/~/3">
									<input id="_hidSearchCondition2" name="_hidSearchCondition2" type="hidden" value="">
									<input name="_hidSearchSubmit2" id="_hidSearchSubmit2" type="submit" style="display: none">
								</li>
								<!-- //page-box -->
									<%-- 	<% 
											if(user != null) { 
												//if(user.getMemberId().equals("admin")) {
										%> --%>
											<li class="write-box" style="text-align: right; margin-right: 50px;">
												<a href="/GOP/pages/event/campsite/write_form.jsp" class="button h29 w120 orange"><b>등록하기</b></a>
											</li>
										<%-- <% } %> --%>
							</div>
						</div>
					</div>
				</div>
			</div>
		</form>

</body>
</html>